package com.zhhh.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.zhhh.domain.BMode;

public interface ModeRepository extends CrudRepository<BMode, Integer>, PagingAndSortingRepository<BMode, Integer> {

	@Query("select count(t) from BMode t")
	Long countByAll();
}
